package cn.sfrog.project.biz.web.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 分页数据
 */
@Data
@ApiModel(description = "提交订单表单VO")
public class AppServiceOrderFormVO {

    @ApiModelProperty("购买类型【1=服务 2=套餐】")
    @NotBlank(message = "购买类型不能为空")
    private String buyType;

    @ApiModelProperty("商品id【服务或套餐的id】")
    @NotNull(message = "商品id不能为空")
    private Long productId;

    @ApiModelProperty("预约时间")
    @NotNull(message = "预约时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date appointmentDate;

    @ApiModelProperty("医院id")
    @NotNull(message = "医院id不能为空")
    private Long hospitalId;

    @ApiModelProperty("联系人手机号")
    @NotBlank(message = "联系人手机号不能为空")
    private String contactPhone;

    @ApiModelProperty("联系人姓名")
    @NotBlank(message = "联系人姓名不能为空")
    private String contactName;

    @ApiModelProperty("特殊需求")
    private String specialNeeds;

    @ApiModelProperty("订单数量")
    @NotNull(message = "订单数量不能为空")
    private Integer num;

    @ApiModelProperty("订单金额")
    @NotNull(message = "订单金额不能为空")
    private BigDecimal amount;

    @ApiModelProperty("接单用户id")
    private Long acceptUserId;

    @ApiModelProperty("身份证号码")
    @NotBlank(message = "身份证号码不能为空")
    private String idCardNumber;

    @ApiModelProperty("代取药，药品类型 1是处方0是非处方")
    private String drugType;

    @ApiModelProperty("挂号类型，专家号1普通号2")
    private String registrationType;

    @ApiModelProperty("目的地,送到客户手中的目的地")
    private String address;

    @ApiModelProperty("医院下面二级分类")
    private String departmentId;

    @ApiModelProperty("下单医院医生的id")
    private String doctorId;

}
